package org.otarriinae.security.base.constant;


/**
 * @author xj
 * @since 1.0
 */
public class StringsConstant {
    public static final String REDIS_TOKEN = "otarriinae:security:token";

    public static final String ERROR_CODE = "SECURITY_0001";

    public static final String TOKEN_HEAD = "Bearer";
    public static final String TOKEN_HEADER = "Authorization";
    public static final String TOKEN_PARAMETER = "token";

    public static String getRedisToken(String token) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(REDIS_TOKEN);
        stringBuilder.append(token);
        return stringBuilder.toString();
    }

}
